import { createRouter, createWebHistory } from 'vue-router'
import ChatInterface from '../views/chatInterface/chatInterface.vue'
import LoginInterface from '../views/login/loginInterface.vue'
import EnrollInterface from '@/views/login/enrollInterface.vue'
import CircleOfFriends from '@/views/toggleInterface/circleOfFriends.vue'

const routes = [
    {
        path: '/chatInterface',
        name: 'chatInterface',
        component: ChatInterface
    },
    {
        path: '/loginInterface',
        name: 'loginInterface',
        component: LoginInterface
    },
    {
        path: '/enrollInterface',
        name: 'enrollInterface',
        component: EnrollInterface
    },
    {
        path: '/circleOfFriends',
        name: 'circleOfFriends',
        component: CircleOfFriends
    },
    {
        path: '/',
        redirect: '/loginInterface'
    }
]

const router = createRouter({
    history : createWebHistory(),
    routes
})


export default router
